#ifndef MYTIMER_H
#define MYTIMER_H

#include <QLabel>
#include <QTimer>
#include <QString>

class MyTimer : public QLabel
{
public:
    MyTimer(){};
    MyTimer(QString info);
    QTimer * timer;
    QString info;
    long sec = 0;
    void pause();
    void start();
    void reset();
    void restart();
private slots:
    void showtime();
private:
    QString cal_time(long sec);
};

#endif // MYTIMER_H
